package com.acme.testing;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

//@Service("authService")
public class TestUserDetailsService implements UserDetailsService {
    @Override
    public UserDetails loadUserByUsername(String username)
	    throws UsernameNotFoundException {
	if(username.equals("user")) return new TestUserDetails();
	else throw new UsernameNotFoundException("Username not found!");
    }
}
